home *** CD-ROM | disk | FTP | other *** search
- Path: astfgl.idb.hist.no!anneu
- From: anneu@colargol.idb.hist.no (Anne Kristine Ugedal)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: C++ Classes
- Date: 16 Apr 1996 09:02:36 GMT
- Organization: Sor-Trondelag College, Norway
- Distribution: world
- Message-ID: <4kvnnc$rhe@astfgl.idb.hist.no>
- References: <Stewart_Menday.3jrp@kumear.DIALix.oz.au>
- NNTP-Posting-Host: colargol.idb.hist.no
- X-Newsreader: TIN [version 1.2 PL2]
-
- Stewart Menday (Stewart_Menday@kumear.DIALix.oz.au) wrote:
- : Hi ALL
- : I have a question about C++ and calling functions which have been
- : overriden.
-
- : If I have a class x say and it is derived from class y say and they both a
- : method print() say. How do I call class y print from within class x?
-
- [snip]
-
- : void x::print();
- : {
- : //some stuff for x
-
- : //I wish to call y.print
- : }
-
- : Any help would be great.
-
- You are almost there, try y::print()
-
- Good luck!
-
- Anne
-
- --
- * Anne Kristine Ugedal *** Win.HLP AS, Norway - my employer *
- ** Spare time Amiga developer *** Office time Windows developer. **
- *** anneu@colargol.idb.hist.no *** anne@winhlp.no ***
- **** http://colargol.idb.hist.no/~anneu *** http://www.winhlp.no ****
-